package com.xyg.dao;

import com.xyg.pojo.Review;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReviewRepository extends MongoRepository< Review, String > {

    List< Review > findReviewsByProductId ( String productId );

}